# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libsmraw-python
_pkgname=libsmraw
__pkgname="${_pkgname}-python"
pkgver=20240506
pkgrel=3
pkgdesc='Library and tools to access the (split) RAW image format.'
url='https://pypi.org/project/libsmraw-python/'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$__pkgname/$_pkgname-python-$pkgver.tar.gz")
sha512sums=('848044fae790877f441a45506f1652f3dcde1ff2312e364e950082e4fed85ae4116b1348f812a2324295517e04d324717f6035ec793f4e18783d77260b7e0bdb')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

